package com.jiangnan.warehouse_management.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;

@Data
public class WarehouseRequest {
    @NotBlank(message = "仓库名称不能为空")
    private String warehouseName;

    @NotBlank(message = "仓库地址不能为空")
    private String location;

    @NotNull(message = "仓库容量不能为空")
    @Positive(message = "仓库容量必须大于0")
    private Double capacity;

    @NotNull(message = "管理员ID不能为空")
    @Positive(message = "管理员ID必须大于0")
    private Integer managerId;

    private Boolean status = true;
}